package com.feng.util.math;

import java.io.IOException;

public class CircleTest {
	/*public double circleArea(double r){
		double area = 0;
		double r;
		BufferedReader br=null;
		System.out.println("请输入圆的半径:"); 
		br=new BufferedReader(new InputStreamReader(System.in));//关键 从键盘读入
		r = Double.parseDouble(br.readLine()); //关键 将值付给i
		System.out.println("圆的半径为："+r);
		System.out.println("圆的面积为："+Math.PI*r*r*0.5);
		System.out.println("圆的周长为："+Math.PI*r);
		return area;
	}
	
	public double circleLength(double r){
		double length = 0;
		return length;
	}*/
	public void paixu(){
		int [] num= {2,0,6,3,5,4,8,7,9,1};
		int temp;
		String str="";
		for(int i=0; i<num.length;i++){
			for(int j = i+1; j < num.length; j++){
				if(num[i] > num[j]){
					temp = num[i];
					num[i] = num [j];
					num[j] = temp;
				}
			}
		}
		for(int k = 0; k < num.length; k++){
			str += num[k]+" ";
		}
		System.out.println(str);
	}
	public static void main(String [] args) throws IOException{
		CircleTest  circle = new CircleTest();
		circle.paixu();
	}
}
